/*
 * check_buffer.c - Buffer validation function
 */

#include "bounds_check.h"
#include "bounds_check_internal.h"

int check_buffer(const void *ptr, size_t size) {
    return is_valid_buffer(ptr, size) ? BOUNDS_CHECK_SUCCESS : BOUNDS_CHECK_INVALID_PARAM;
}